package com.xiechur.test;

import com.xiechur.service.BankService;
import com.xiechur.service.StudentService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by dell on 2016/3/27.
 */
public class T {
    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("beans.xml");
        BankService bankService = (BankService) ac.getBean("bankService");
        bankService.transferAccounts(100, 1, 2);
    }
}
